import request from '@/utils/request.js'

// 生成订单(即填写订单或结算页)
export function createOrderListAPI() {
  return request({
    method: 'GET',
    url: '/member/order/pre'
  })
}

// 提交订单
export function submitOrderAPI(data) {
  return request({
    method: 'POST',
    url: '/member/order',
    data
  })
}

// 获取我的订单详情
export function getOrderDetailAPI(id) {
  return request({
    method: 'GET',
    url: `/member/order/${id}`
  })
}
